<%@ page language="java" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	pageContext.setAttribute("path", path);
%>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>首页</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="${path}/resources/bootstrap/css/bootstrap.css" type="text/css" rel="stylesheet" media="screen" />
<style>
body {
	/* 60px to make the container go all the way to the bottom of the topbar */
	padding-top: 50px;
}
</style>
</head>
<body>
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">问答</a>
				<div class="nav-collapse collapse">
					<ul class="nav">
						<li class="active"><a href="#">主页</a></li>
						<li><a href="#about">关于</a></li>
					</ul>
					<!-- 
					<form class="navbar-search" action="">
						<input type="text" class="search-query span6" placeholder="查询">
					</form>
					-->
					<ul class="nav pull-right">
						<li class="divider-vertical"></li>
						<li><a href="#">登录</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="span10">
				<h5 class="text-info">问题列表</h5>
				<table id="questionList" class="table table-condensed table-bordered table-striped table-hover">
					<tr>
						<th class="span1">#</th>
						<th class="span7">问题描述</th>
						<th class="span2">提问时间</th>
					    <th class="span2">是否结束</th>
					</tr>
					<script id="questionListTemplate" type="text/x-jsrender">
					<tr>
        				<td>{{:#index+1}}</td>
					    <td>{{:title}}</td>
					    <td>{{:create}}</td>
					    <td>{{:rate}}</td>
					</tr>
					</script>
				</table>
				<div class="pagination pagination-small">
					<ul>
						<li class="disabled"><span>首页</span></li>
						<li class="active"><span>1</span></li>
						<li class="active"><span>2</span></li>
						<li class="active"><span>3</span></li>
						<li class="active"><span>4</span></li>
						<li class="active"><span>5</span></li>
						<li class="active"><span>尾页</span></li>
					</ul>
				</div>
			</div>
			<div class="span2">
				<h5 class="text-success">标签</h5>
			</div>
		</div>
	</div>
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script src="${path}/resources/bootstrap/js/bootstrap.js" type="text/javascript"></script>
	<script src="${path}/resources/jquery-bootstrap-pagination/jquery-bootstrap-pagination.js" type="text/javascript"></script>
	<script src="${path}/resources/jsrender/jsrender.js" type="text/javascript"></script>
	<script src="${path}/resources/project/index.js" type="text/javascript"></script>
</body>
</html>
